package com.hugy.test.entity.dto;

import com.hugy.test.entity.TokenInfo;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class ResponseMessage {
    private int code;
    private String message;
    private TokenInfo body;

    public static ResponseMessage success(String message, TokenInfo tokens) {
        return new ResponseMessage(200,message,tokens);
    }
}
